package com.bw.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class StudentController {
    @Value("${username2}")
    String username2;

    @GetMapping("/username")
    public String username() {
        return username2;
    }

    @GetMapping("/hello")
    public String hello() {
        return "hello,springboot";
    }
}
